// Client

AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")

// Include

include('shared.lua')

// Initialize

function ENT:Initialize()
	self.Entity:PhysicsInit(SOLID_VPHYSICS)
	self.Entity:SetMoveType(MOVETYPE_VPHYSICS)
	self.Entity:SetSolid(SOLID_BBOX)
	self.Entity:SetUseType(ONOFF_USE)
	self.Entity:SetNetworkedInt(0, 0)
	
	// Collision dimensions
	
	self:SetCollisionDimensions()
end

// Size

function ENT:SetCollisionDimensions()
	// Size
	
	local Min = Vector(-32 * self.Entity.Scale, -32 * self.Entity.Scale, -32 * self.Entity.Scale)
	local Max = Vector(32 * self.Entity.Scale, 32 * self.Entity.Scale, 32 * self.Entity.Scale)
	
	self.Entity:PhysicsInitBox(Min, Max)
	self.Entity:SetCollisionBounds(Min, Max)
	
	// Mass
	
	local Mass = self.Entity:GetPhysicsObject():GetMass()
	
	self.Entity:GetPhysicsObject():SetMass(Mass * self.Entity.Scale)
end